#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)


#include<stdio.h>
#include"BitMap.h"

int main() {
	BitMap* map = bitmap_create(100);

	bitmap_set(map, 9);
	bitmap_set(map, 2);
	bitmap_set(map, 8);
	bitmap_set(map, 9);
	bitmap_set(map, 89);

	bitmap_unset(map, 2);
	bitmap_unset(map, 100);
	bitmap_unset(map, 200);

	printf("%s\n", bitmap_isset(map, 9) ? "true" : "false"); //true
	bitmap_unset(map, 9);
	printf("%s\n", bitmap_isset(map, 9) ? "true" : "false"); //false
	printf("%s\n", bitmap_isset(map, 100) ? "true" : "false"); //false

	bitmap_clear(map);

	return 0;
}